\hypertarget{class____Ptcls}{}\section{\+\_\+\+\_\+\+Ptcls Class Reference}
\label{class____Ptcls}\index{\+\_\+\+\_\+\+Ptcls@{\+\_\+\+\_\+\+Ptcls}}


单个粒子类信息，可以是任何种类粒子  




{\ttfamily \#include $<$particles.\+h$>$}



Collaboration diagram for \+\_\+\+\_\+\+Ptcls\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=296pt]{d9/d47/class____Ptcls__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptcls_abd7597826d0ad1b5fe492cd7d0265eb4}{}{\bfseries \+\_\+\+\_\+\+Ptcls} (\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&pos, \hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \&vel, long \&wt, double \&ene, double \hyperlink{class____Ptcls_aec1deca97ac099553420c1f9cc138b3b}{charge})\label{class____Ptcls_abd7597826d0ad1b5fe492cd7d0265eb4}

\item 
\hypertarget{class____Ptcls_ac65068bc8370de390f6b3e394c55d45d}{}{\bfseries \+\_\+\+\_\+\+Ptcls} (const \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} \&other)\label{class____Ptcls_ac65068bc8370de390f6b3e394c55d45d}

\item 
\hypertarget{class____Ptcls_afbbb0416def5471af414ec7d9253e6b9}{}{\bfseries \+\_\+\+\_\+\+Ptcls} (const \hyperlink{structParticles}{Particles} \&myptcl)\label{class____Ptcls_afbbb0416def5471af414ec7d9253e6b9}

\item 
\hypertarget{class____Ptcls_af863f11743d992891e0e79de66e28f65}{}void \hyperlink{class____Ptcls_af863f11743d992891e0e79de66e28f65}{advance} (double \&delta\+\_\+t)\label{class____Ptcls_af863f11743d992891e0e79de66e28f65}

\begin{DoxyCompactList}\small\item\em 粒子推动 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a522b307a9a3fefda5c1cf489ca77fa9b}{}void \hyperlink{class____Ptcls_a522b307a9a3fefda5c1cf489ca77fa9b}{boris} (double \&delta\+\_\+t)\label{class____Ptcls_a522b307a9a3fefda5c1cf489ca77fa9b}

\begin{DoxyCompactList}\small\item\em boris转动进行电磁加速 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a18c3f527195910edacebf07d1deee7c3}{}void \hyperlink{class____Ptcls_a18c3f527195910edacebf07d1deee7c3}{lorentz} (double \&delta\+\_\+t)\label{class____Ptcls_a18c3f527195910edacebf07d1deee7c3}

\begin{DoxyCompactList}\small\item\em 粒子根据速度推动一步 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a77ff6b30069c0a76772206cebceb009f}{}void \hyperlink{class____Ptcls_a77ff6b30069c0a76772206cebceb009f}{set\+\_\+field} (const \hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \&oefield, const \hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \&obfield)\label{class____Ptcls_a77ff6b30069c0a76772206cebceb009f}

\begin{DoxyCompactList}\small\item\em 设置粒子感受到的场 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptcls_aeba79577ec36efdd5d55f0b483663eeb}{}long \hyperlink{class____Ptcls_aeba79577ec36efdd5d55f0b483663eeb}{id}\label{class____Ptcls_aeba79577ec36efdd5d55f0b483663eeb}

\begin{DoxyCompactList}\small\item\em 粒子的标号 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a190602549e77f92d18694bfac93774de}{}int \hyperlink{class____Ptcls_a190602549e77f92d18694bfac93774de}{species}\label{class____Ptcls_a190602549e77f92d18694bfac93774de}

\begin{DoxyCompactList}\small\item\em 粒子的种类：0电子，1：离子，2：正电子，3：光子 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_acb07ae3c6b8df2cfa5dacdf2aa988ee7}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Ptcls_acb07ae3c6b8df2cfa5dacdf2aa988ee7}{position}\label{class____Ptcls_acb07ae3c6b8df2cfa5dacdf2aa988ee7}

\begin{DoxyCompactList}\small\item\em 粒子坐标,全局绝对 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a39e0e214e5aaedc38625b1d2d3eab80a}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Ptcls_a39e0e214e5aaedc38625b1d2d3eab80a}{old\+\_\+pos}\label{class____Ptcls_a39e0e214e5aaedc38625b1d2d3eab80a}

\begin{DoxyCompactList}\small\item\em 前一步的位置 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a0709048b1598219650298d09ecda7a6b}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Ptcls_a0709048b1598219650298d09ecda7a6b}{velocity}\label{class____Ptcls_a0709048b1598219650298d09ecda7a6b}

\begin{DoxyCompactList}\small\item\em 粒子速度 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a4c6caa099428ac9c06c2c96c78456021}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Ptcls_a4c6caa099428ac9c06c2c96c78456021}{old\+\_\+vel}\label{class____Ptcls_a4c6caa099428ac9c06c2c96c78456021}

\begin{DoxyCompactList}\small\item\em velocity previous step \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a9df3807cf12885312f760d8c7b400365}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Ptcls_a9df3807cf12885312f760d8c7b400365}{efield}\label{class____Ptcls_a9df3807cf12885312f760d8c7b400365}

\begin{DoxyCompactList}\small\item\em 粒子所在位置电场 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_aeff96eb3ac159cdefef7f8e2fd03f49f}{}\hyperlink{class____Vect3}{\+\_\+\+\_\+\+Vect3}$<$ double $>$ \hyperlink{class____Ptcls_aeff96eb3ac159cdefef7f8e2fd03f49f}{bfield}\label{class____Ptcls_aeff96eb3ac159cdefef7f8e2fd03f49f}

\begin{DoxyCompactList}\small\item\em 粒子所在位置磁场 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a7ef43b6a1b34878da612e73bc643e20d}{}long \hyperlink{class____Ptcls_a7ef43b6a1b34878da612e73bc643e20d}{weight}\label{class____Ptcls_a7ef43b6a1b34878da612e73bc643e20d}

\begin{DoxyCompactList}\small\item\em 粒子权重 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_ae16bdf32f375a3037b79b977dafb5b29}{}double \hyperlink{class____Ptcls_ae16bdf32f375a3037b79b977dafb5b29}{energy}\label{class____Ptcls_ae16bdf32f375a3037b79b977dafb5b29}

\begin{DoxyCompactList}\small\item\em 粒子能量，没有乘以权重 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_aec1deca97ac099553420c1f9cc138b3b}{}double \hyperlink{class____Ptcls_aec1deca97ac099553420c1f9cc138b3b}{charge}\label{class____Ptcls_aec1deca97ac099553420c1f9cc138b3b}

\begin{DoxyCompactList}\small\item\em 粒子电荷，没有乘以权重 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_a4c8ff1d2388163601e00c6685af2859a}{}double \hyperlink{class____Ptcls_a4c8ff1d2388163601e00c6685af2859a}{mass}\label{class____Ptcls_a4c8ff1d2388163601e00c6685af2859a}

\begin{DoxyCompactList}\small\item\em 粒子质量，没有乘以权重 \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_ae422bf0b46eb29be899d8c7eef1bd9fe}{}double {\bfseries lorentz\+\_\+gamma}\label{class____Ptcls_ae422bf0b46eb29be899d8c7eef1bd9fe}

\item 
\hypertarget{class____Ptcls_ad1865ec4648a6571849cc8344f175700}{}double {\bfseries od\+\_\+factor}\label{class____Ptcls_ad1865ec4648a6571849cc8344f175700}

\item 
\hypertarget{class____Ptcls_a1fe6ff408ccf5a9c3c7b8e3b57aff538}{}double {\bfseries rod\+\_\+factor}\label{class____Ptcls_a1fe6ff408ccf5a9c3c7b8e3b57aff538}

\item 
\hypertarget{class____Ptcls_a7ef98b6651dfe417f17b950c5ef442eb}{}double {\bfseries qed\+\_\+factor}\label{class____Ptcls_a7ef98b6651dfe417f17b950c5ef442eb}

\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptcls_ae27fae8bcdf7b0f95d60931480a149d4}{}static long \hyperlink{class____Ptcls_ae27fae8bcdf7b0f95d60931480a149d4}{total\+\_\+id} = 0\label{class____Ptcls_ae27fae8bcdf7b0f95d60931480a149d4}

\begin{DoxyCompactList}\small\item\em current max id \end{DoxyCompactList}\item 
\hypertarget{class____Ptcls_ae2c78f356830d91749bfc3cd6f7ffa6c}{}static long \hyperlink{class____Ptcls_ae2c78f356830d91749bfc3cd6f7ffa6c}{total\+\_\+num} = 0\label{class____Ptcls_ae2c78f356830d91749bfc3cd6f7ffa6c}

\begin{DoxyCompactList}\small\item\em current box total num \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptcls_a3a2439df2aa7636614fd694554476c7d}{}ostream \& {\bfseries operator$<$$<$} (ostream \&out, const \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} \&myptcl)\label{class____Ptcls_a3a2439df2aa7636614fd694554476c7d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
单个粒子类信息，可以是任何种类粒子 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
particles.\+h\item 
main.\+cpp\end{DoxyCompactItemize}
